void TimeMinusMin(int year, int mon, int day, int hour, int min);
ÁÖ¾îÁø ³¯Â¥ º¯¼ö¿¡¼ 1ºÐÀ» »©¼ °¢ º¯¼ö¿¡ ¹ÝȯÇÑ´Ù. À±´Þ 󸮵µ µÈ´Ù.
ÇÔ¼öÀÎÀÚ
year - ³â (ű׳ª º¯¼ö »ç¿ë)
mon - ¿ù (ű׳ª º¯¼ö »ç¿ë)
day - ÀÏ (ű׳ª º¯¼ö »ç¿ë)
hour - ½Ã (ű׳ª º¯¼ö »ç¿ë)
min - ºÐ (ű׳ª º¯¼ö »ç¿ë)
return °ª
¸®ÅÏ°ªÀº ¾ø´Ù.
¿¹Á¦1
year = 2000;
mon = 1;
day = 14;
hour = 12;
min = 55;
@TimeMinusMin(year, mon, day, hour, min);
¹®Àå¼³¸í : ÇÔ¼ö°¡ ½ÇÇàµÇ°í ³ª¸é 2000³â 1¿ù 14ÀÏ 12½Ã 54ºÐ ÀÌ µÈ´Ù.
year = 2000, mon = 1, day = 14, hour = 12, min = 54 °¡ µÈ´Ù.
¿¹Á¦2
$year = 2000;
$mon = 1;
$day = 1;
$hour = 0;
$min = 0;
@TimeMinusMin($year, $mon, $day, $hour, $min);
¹®Àå¼³¸í : ÇÔ¼öÀÇ ÀÎÀڷΠű׸¦ ¹Ù·Î »ç¿ëÇÒ ¼ö ÀÖ´Ù.
$year = 1999, $mon = 12, $day = 31, $hour = 23, $min = 59°¡ µÈ´Ù.
°ü·ÃÇ׸ñ